<template>
	<view class="u-content">
			<u-parse :content="content"></u-parse>
		</view>
</template>

<script>
	const index = require('@/api/index/index.js')
	export default {
		data() {
			return {
				content: ` `,
				id :''
			}
		},
		onLoad(options) {
			this.id = options.id
			let that = this
			that.trendsDetail()
		},
		methods: {
			async trendsDetail() {
				let that = this
				let data = {
					app_id: this.$https.weixinAppId,
					project_id: getApp().globalData.projectId,
					open_id: uni.getStorageSync("openid"),
					id:this.id
				}
				let result = await index.trendsDetail(data)
				if (result.code == 1) {
					this.content = result.data.result
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
    .u-content {
        padding: 24rpx;
    }
</style>
